// tsc .\tscode.ts  tab补全
//新建终端：ctrl shift ·
// 布尔
var flag = true;
// 数字
var age = 18;
// 字符串
var msg = "hyt";
// Array
var arr1 = [1, 2, 3];
var arr2 = [1, 2, 3];
// 枚举：变量的值是有限的，比如性别
var Gender;
(function (Gender) {
    Gender[Gender["MAN"] = 0] = "MAN";
    Gender[Gender["WOMAN"] = 1] = "WOMAN";
})(Gender || (Gender = {}));
console.log(Gender);
console.log(Gender["MAN"]);
console.log(Gender["WOMAN"]);
var Direct;
(function (Direct) {
    Direct["N"] = "north";
    Direct["S"] = "south";
    Direct["W"] = "west";
    Direct["E"] = "east";
})(Direct || (Direct = {}));
console.log(Direct["N"]);
console.log(Direct["S"]);
console.log(Direct["W"]);
console.log(Direct["E"]);
// 元组
var man = [
    "何玉婷",
    18,
    "女",
    ["钱", "帅哥"],
];
// void空白代表没有任何类型 常用于返回值
function fn() { }
// never是异常的数据类型，unknow是any的安全类型
var value; //可以把unknow类型的类型赋任何值
value = 1;
var ev = "click";
document.addEventListener(ev, function () {
    console.log(666);
});
